<template>
	<view class="content">
		<navigabar title='我的结算' />
		<image class="ui_bg" src="/static/img/bg_pifa.png" mode=""></image>
		<view class="ui_title">鳗漫养结算说明</view>
		<view class="ui_info">
			<view class="ui_info_text">可结算金额</view>
			<view class="ui_info_money">16250.00</view>

			<view class="ui_info_list">
				<view class="ui_info_list_item">
					<view class="ui_info_list_item_text">累计已结算金额</view>
					<view class="ui_info_list_item_money">265700.00</view>
				</view>
				<view class="ui_info_list_line"></view>
				<view class="ui_info_list_item">
					<view class="ui_info_list_item_text">未结算金额</view>
					<view class="ui_info_list_item_money">265.00</view>
				</view>
			</view>

			<view class="ui_info_bottom">
				<view class="ui_info_bottom_item" @click="goTo('/pages/user/settlement_list')">查看明细</view>
				<view class="ui_info_bottom_item s" @click="goTo('/pages/user/apply_settlement')">申请结算</view>
			</view>
		</view>

		<view class="ui_tabs">
			<view class="ui_tabs_item" @click="goTo('/pages/user/settlement_order')">
				<image class="ui_tabs_item_icon" src="/static/img/icon_settlement_order_waite.png" mode=""></image>
				<view class="ui_tabs_item_text">待结算订单</view>
				<view class="ui_tabs_item_num">
					<u-badge max="99" value="12"></u-badge>
				</view>
			</view>
			<view class="ui_tabs_line"></view>
			<view class="ui_tabs_item" @click="goTo('/pages/user/settlement_order')">
				<image class="ui_tabs_item_icon" src="/static/img/icon_settlement_order_done.png" mode=""></image>
				<view class="ui_tabs_item_text">已结算订单</view>
			</view>
		</view>

		<view class="ui_top" @click="goTo('/pages/user/settlement_list')">
			<view class="ui_top_left">结算记录</view>
			<view class="ui_top_more">更多</view>
			<u-icon name="arrow-right" size="15" color="#999999"></u-icon>
		</view>
		<view class="ui_list">
			<view class="ui_list_item">
				<image class="ui_list_item_img" src="/static/img/icon_settlement_commit.png" mode=""></image>
				<view class="ui_list_item_text">提交结算 <p>财务结算中</p>
				</view>
				<view class="ui_list_item_time">2024-04-10 12:45:56</view>
				<view class="ui_list_item_money">-200.00</view>
				<view class="ui_list_item_last">余额0.00</view>
			</view>
			<view class="ui_list_item">
				<image class="ui_list_item_img" src="/static/img/icon_settlement_commit.png" mode=""></image>
				<view class="ui_list_item_text">提交结算 <p style="color: #999999;">已到账</p>
				</view>
				<view class="ui_list_item_time">2024-04-10 12:45:56</view>
				<view class="ui_list_item_money">-200.00</view>
				<view class="ui_list_item_last">余额0.00</view>
			</view>
			<view class="ui_list_item" v-for="(item,index) in 2" :key="index">
				<image class="ui_list_item_img" src="/static/img/icon_settlement_done.png" mode=""></image>
				<view class="ui_list_item_text">订单到账 </view>
				<view class="ui_list_item_time">2024-04-10 12:45:56</view>
				<view class="ui_list_item_money">-200.00</view>
				<view class="ui_list_item_last">余额0.00</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			goTo(url) {
				console.log(url)
				this.$util.navTo(url)
			},

		}
	}
</script>

<style lang="less">
	.content {
		width: 750rpx;
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		.ui_bg {
			position: absolute;
			top: 0;
			left: 0;
			width: 750rpx;
			height: 400rpx;
			z-index: 88;
		}

		.ui_title {
			z-index: 89;
			margin-top: 20rpx;
			width: 714rpx;
			line-height: 56rpx;
			text-align: center;
			background: #D4AC6F;
			border-radius: 20rpx 20rpx 0rpx 0rpx;
			font-family: PingFang SC;
			font-weight: 500;
			font-size: 24rpx;
			color: #FFFFFF;
		}


		.ui_info {
			z-index: 89;
			width: 714rpx;
			height: 484rpx;
			display: flex;
			flex-direction: column;
			background: #FFFFFF;
			border-radius: 0rpx 0rpx 20rpx 20rpx;

			&_text {
				margin-top: 30rpx;
				width: 100%;
				text-align: center;
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 28rpx;
				color: #333333;
				line-height: 36rpx;
				height: 36rpx;
			}

			&_money {
				margin-top: 10rpx;
				width: 100%;
				text-align: center;
				font-family: D-DIN Condensed;
				font-weight: bold;
				font-size: 72rpx;
				color: #333333;
			}

			&_list {
				margin-top: 10rpx;
				width: 100&%;
				height: 140rpx;
				display: flex;
				align-items: center;

				&_line {
					width: 1rpx;
					height: 80rpx;
					background: #E6E6E6;
				}

				&_item {
					flex: 1;
					display: flex;
					flex-direction: column;
					align-items: center;

					&_text {
						margin-top: 20rpx;
						font-family: PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: #666666;
						line-height: 36rpx;
					}

					&_money {
						margin-top: 20rpx;
						font-family: D-DIN Condensed;
						font-weight: bold;
						font-size: 40rpx;
						color: #333333;
						line-height: 36rpx;
					}
				}
			}

			&_bottom {
				width: 100%;
				display: flex;
				justify-content: space-around;
				background-color: #fff;

				&_item {
					margin-top: 20rpx;
					width: 300rpx;
					line-height: 90rpx;
					height: 90rpx;
					text-align: center;
					font-family: PingFang SC;
					font-weight: bold;
					font-size: 32rpx;
					color: #666666;
					background: #FFFFFF;
					border-radius: 45rpx;
					border: 1px solid #C4C9D8;
				}

				.s {
					background: linear-gradient(90deg, #C7974E, #986B28);
					color: #fff;
				}
			}

		}

		.ui_tabs {
			margin-top: 20rpx;
			width: 714rpx;
			height: 140rpx;
			background: #FFFFFF;
			border-radius: 20rpx;
			display: flex;
			align-items: center;

			&_line {
				width: 1rpx;
				height: 80rpx;
				background: #E6E6E6;
			}

			&_item {
				flex: 1;
				display: flex;
				flex-direction: column;
				align-items: center;
				position: relative;

				&_icon {
					width: 48rpx;
					height: 48rpx;
				}

				&_text {
					margin-top: 10rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 28rpx;
					color: #333333;
				}

				&_num {
					position: absolute;
					left: 190rpx;
					top: -5rpx;
				}
			}
		}

		.ui_top {
			margin-top: 20rpx;
			width: 714rpx;
			height: 90rpx;
			display: flex;
			align-items: center;
			background: #FFFFFF;
			padding-top: 20rpx;
			padding-right: 10rpx;
			border-radius: 20rpx 20rpx 0rpx 0rpx;

			&_left {
				margin-left: 30rpx;
				flex: 1;
				font-family: PingFang SC;
				font-weight: bold;
				font-size: 32rpx;
				color: #333333;
			}

			&_more {
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 26rpx;
				color: #999999;
				margin-right: 10rpx;
			}
		}

		.ui_list {
			width: 714rpx;
			display: flex;
			flex-direction: column;
			background: #FFFFFF;
			padding-bottom: 20rpx;
			border-radius: 0rpx 0rpx 20rpx 20rpx;

			&_item {
				margin-left: 18rpx;
				width: 674rpx;
				height: 140rpx;
				display: flex;
				position: relative;
				border-bottom: 1rpx solid #E6E6E6;
				;

				&_img {
					width: 80rpx;
					height: 80rpx;
					border-radius: 40rpx;
					border: 4px solid #FFFFFF;
					margin: 20rpx 30rpx 20rpx 0;
				}

				&_text {
					position: absolute;
					top: 30rpx;
					left: 138rpx;
					font-family: PingFang SC;
					font-weight: bold;
					font-size: 28rpx;
					color: #3E3A39;
					line-height: 48rpx;
					display: flex;
					align-items: center;

					p {
						margin-left: 10rpx;
						font-family: PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: #9F6F26;
						line-height: 48rpx;
					}
				}

				&_time {
					position: absolute;
					top: 75rpx;
					left: 138rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 24rpx;
					color: #999999;
					line-height: 36rpx;
				}

				&_money {
					position: absolute;
					top: 25rpx;
					right: 0rpx;
					font-family: D-DIN Condensed;
					font-weight: bold;
					font-size: 40rpx;
					color: #333333;
					line-height: 48rpx;
				}

				&_last {
					position: absolute;
					bottom: 24rpx;
					right: 0rpx;
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 24rpx;
					color: #999999;
					line-height: 48rpx;
				}
			}
		}
	}
</style>